<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="page-content">
		<div>
			<h1>这里是Spring Boot Jsp测试</h1>
		</div>
		<a href="https://login.dg-work.cn/oauth2/auth.htm?response_type=code&client_id=szdycode_dingoa&redirect_uri=http://dytestlocal.teachina.com/hello&scope=get_user_info&authType=QRCODE">二维码</a>
	</div>
</body>
<script type="application/javascript">
    window.addEventListener('message', function(event) {
        // 这里的event.data 就是登录成功的信息
        // 数据格式：{ "code": "aaaa", "state": "bbbb" }
        alert(JSON.stringify(event.data));
    });
</script>
</html>
